#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main()
{
	int a = 0, b = 0,flag=1;
	for (a = 1; a <= 100; a+=2)
	{
		for (b = 2; b <= a - 1; b++)
		{
			if (a % b == 0)
				flag = 0;
				break;
		}
		if (flag=1)
			printf("%d ", a);
	}
	return 0;
}